const Koa = require("koa");
const app = new Koa();
const Router = require("koa-router");
const router = new Router();
const koaBody=require("koa-body");

app.use(koaBody());

router.get("/",ctx=>{
   ctx.body="hello koa";
});
app.use(router.routes()).use(router.allowedMethods());

app.listen(3000);
